<!-- <p>add-user works!</p> -->
<div class="modal-cases-component" style="height: 380px;">
    <form dForm [layout]="layoutDirection" ngForm>
        <d-form-item>
            <d-form-label [required]="true">用户姓名</d-form-label>
            <d-form-control>
                <input dTextInput autocomplete="off" name="newUserName" [(ngModel)]="userInfo.userName" />
            </d-form-control>
        </d-form-item>
        <d-form-item>
            <d-form-label [required]="true">账号</d-form-label>
            <d-form-control>
                <input dTextInput autocomplete="off" name="newUserAcc" [(ngModel)]="userInfo.userAcc" />
            </d-form-control>
        </d-form-item>
        <d-form-item>
            <d-form-label [required]="true">密码</d-form-label>
            <d-form-control>
                <input dTextInput autocomplete="off" name="newUserPwd" [(ngModel)]="userInfo.userPwd" />
            </d-form-control>
        </d-form-item>
        <d-form-item>
            <d-form-label [required]="true">角色</d-form-label>
            <d-form-control>
                <d-select *ngIf="editeRole === 'SuperAdmin'" [options]="options1" name="userRoleName" [(ngModel)]="userInfo.roleName">
                </d-select>
                <d-select *ngIf="editeRole !== 'SuperAdmin'" [options]="options2" name="userRoleName" [(ngModel)]="userInfo.roleName">
                </d-select>
            </d-form-control>
        </d-form-item>
    </form>
</div>